<template>
  <van-button class="out" round plain @click="onCancelOrder()"
    >取消问诊</van-button
  >
  <van-button class="next" round plain type="success" @click="$router.push({ path: `/my/consult/${order.id}`, query: order })">去支付</van-button>
</template>

<script setup>
import { defineEmits, defineProps } from 'vue'

const emits = defineEmits(['cancelOrder'])

defineProps({
  order: {
    type: Object,
    default: () => {}
  }
})

// 取消问诊
const onCancelOrder = () => {
  emits('cancelOrder')
}
</script>

<style lang="scss" scoped>
</style>
